VERSION 5.00
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form DeudaAdministrador 
   Caption         =   "Consulta de Estado de Deuda por Adminstrador"
   ClientHeight    =   7380
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   10980
   LinkTopic       =   "Form1"
   ScaleHeight     =   7380
   ScaleWidth      =   10980
   StartUpPosition =   3  'Windows Default
   Begin MSDataGridLib.DataGrid dgDeudaAdmin 
      Bindings        =   "DeudaAdministrador.frx":0000
      Height          =   4335
      Left            =   480
      TabIndex        =   2
      Top             =   1440
      Width           =   9855
      _ExtentX        =   17383
      _ExtentY        =   7646
      _Version        =   393216
      HeadLines       =   1
      RowHeight       =   15
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ColumnCount     =   2
      BeginProperty Column00 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   11274
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column01 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   11274
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         BeginProperty Column00 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
   Begin MSAdodcLib.Adodc adoDeudaAdmin 
      Height          =   330
      Left            =   3240
      Top             =   6960
      Width           =   2775
      _ExtentX        =   4895
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin MSDataListLib.DataCombo CBOadministradores 
      Bindings        =   "DeudaAdministrador.frx":001C
      DataSource      =   "adoAdministradoresCbo"
      Height          =   315
      Left            =   4920
      TabIndex        =   0
      ToolTipText     =   "Seleccione por apellido y nombre"
      Top             =   480
      Width           =   3375
      _ExtentX        =   5953
      _ExtentY        =   556
      _Version        =   393216
      Style           =   2
      ListField       =   ""
      Text            =   ""
   End
   Begin MSAdodcLib.Adodc adoAdministradoresCbo 
      Height          =   330
      Left            =   0
      Top             =   6960
      Visible         =   0   'False
      Width           =   3015
      _ExtentX        =   5318
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   1
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Silem\Base de Datos\Silem.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Silem\Base de Datos\Silem.mdb;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "Select * from Administradores"
      Caption         =   "adoAdministradoresCbo"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.Label Label3 
      Caption         =   "Seleccione el administrador para efectuar la consulta:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   120
      TabIndex        =   1
      Top             =   480
      Width           =   4695
   End
End
Attribute VB_Name = "DeudaAdministrador"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim admin As Integer




Private Sub CBOadministradores_Click(Area As Integer)
If Area = 2 Then
    adoAdministradoresCbo.Bookmark = CBOadministradores.SelectedItem
    admin = adoAdministradoresCbo.Recordset!Admin_Id
    Consultar
End If
End Sub


Public Sub Consultar()

adoDeudaAdmin.RecordSource = "SELECT * From DeudaAdministrador where Admin_ID = " & admin
adoDeudaAdmin.Refresh
dgDeudaAdmin.Refresh
End Sub


Private Sub Form_Load()
adoAdministradoresCbo.CommandType = adCmdText
adoAdministradoresCbo.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Base de Datos\Silem.mdb;Persist Security Info=False"
adoAdministradoresCbo.RecordSource = "SELECT Admin_ID, Admin_Apellido,Admin_Nombre, Admin_Apellido & "", "" & Admin_Nombre AS " & _
                " enlazado FROM Administradores ORDER BY [Admin_Apellido], [Admin_Nombre]"
adoAdministradoresCbo.Refresh

adoDeudaAdmin.CommandType = adCmdText
adoDeudaAdmin.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Base de Datos\Silem.mdb;Persist Security Info=False"
adoDeudaAdmin.RecordSource = "SELECT * From DeudaAdministrador"
adoDeudaAdmin.Refresh
dgDeudaAdmin.Refresh
End Sub
